package com.andy.module.util


/**
 * @creator:LuoFan
 * @date:2022/6/10
 * @description:
 */
object AndyTimeUtil {

    const val MONTH_IN_MILLIS = 30 * 24 * 3600000L

    const val DAY_IN_MILLIS = 24 * 3600000

    fun getBetweenMonth(startTime: Long, endTime: Long): Long {
        if (endTime == 0L) {
            return 0
        }
        return (endTime - startTime) / MONTH_IN_MILLIS
    }
}